import request from "@/request";
import type { responseType } from "./interface";

/**
 * 导入数据
 * @param {string} file
 * @returns
 */
export function uploadToOss(file: object): Promise<responseType> {
  return request.post(`/uploadToOss?file=${file}`);
}
